package org.jeecg.basic.service;

import com.github.jeffreyning.mybatisplus.service.IMppService;
import org.jeecg.basic.entity.MesBomItemSetup;
import org.jeecg.common.api.vo.Result;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;

/**
 * @Description: 产品BOM
 * @Author: LiCY
 * @Date: 2023-06-16
 * @Version: V1.0
 */
public interface IMesBomItemSetupService extends IMppService<MesBomItemSetup> {

    /**
     * 通过主表id查询子表数据
     *
     * @param mainId
     * @return List<MesBomItemSetup>
     */
    public List<MesBomItemSetup> selectByMainId(String mainId);

    /**
     * 下载导入模板
     *
     */
    public void getImportMould(HttpServletResponse response);

    /**
     * 通过主表id查询子表数据
     *
     * @param mainId
     * @return List<MesBomItemSetup>
     */
    public Result<?> importMesBomItemSetup(HttpServletRequest request);

    void exportImportMould(HttpServletRequest request, HttpServletResponse response, Map<String, Object> param);
}
